// 引入mysql模块
const mysql = require('mysql')
// 创建连接对象
const connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: '',
    port: 3306,
    database: 'tedu',
    multipleStatements: true
})
// 暴露连接对象
module.exports = connection